from feature_data.XmlData2DictData import Xml2Dict
from feature_data.Dict2Coauthor_Graphfeature import Feature_coauthor_extration
from feature_data.const_data import *

xml_file_name_list = [
        xml_file_name1,
        xml_file_name2,
        xml_file_name3,
        xml_file_name4,
        xml_file_name5,
        xml_file_name6,
        xml_file_name7,
        xml_file_name8,
        xml_file_name9,
        xml_file_name10
    ]
all_coauthorset = set()
for xml_file_name in xml_file_name_list:

    xml2dict = Xml2Dict(xml_dir + xml_file_name)
    feature_coauthor_extration = Feature_coauthor_extration(xml2dict)

    coauthorset = feature_coauthor_extration.coauthorset_list

    all_coauthorset = all_coauthorset.union(set(coauthorset))

all_coauthorset = sorted(list(all_coauthorset))

for coauthor in all_coauthorset:
    print coauthor